package pyrachnid.view.component;

import java.util.ArrayList;

import javax.swing.AbstractListModel;

import pyrachnid.model.robot_model.RobotType;

public class RobotTypeListModel extends AbstractListModel {

	private static final long serialVersionUID = 3838493703627508784L;
	
	private ArrayList<RobotType> _robotTypeList;

	public RobotTypeListModel(ArrayList<RobotType> p_robotType) {
		_robotTypeList = p_robotType;
	}
	
	@Override
	public Object getElementAt(int p_index) {
		return _robotTypeList.get(p_index).getNameType();
	}

	@Override
	public int getSize() {
		return _robotTypeList.size();
	}

}
